home *** CD-ROM | disk | FTP | other *** search
- ; This file uses Mike D.'s scripting routines to create a menu
- ; hierarchy.
-
- ; FORMAT:
- ; MENU (menu#1_Title, <NONE/parentMenuName>,
- ; entry#1_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
- ; entry#2_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
- ; .
- ; .
- ; .
- ; entry#n_title, <SUBMENU/FUNCTION/FLYMENU>, menu/function_Name,
- ; MENU_END)
- ;
- ; MENU (menu#2_Title, etc.)
- ;
- ; ...and so on.
-
- ; IMPORTANT NOTES:
- ; --When building the hierarchy, setup uses non-case-sensetive
- ; strings to identify parents and children. So you MUST NOT
- ; have two entries or menus with the same title!!
- ;
- ; --The root level menu will have 'None' for its parent. All other
- ; windows can have anything here. At the moment, this field
- ; isn't used for anything. In the future, it could provide
- ; a means to identify non-unique menu entries.
- ;
- ; --All entries in a menu either call a child menu or a function.
- ; The <SUBMENU/FUNCTION/FLYMENU> field determines the behavior
- ; for the corresponding entry. If you enter SUBMENU, the name
- ; in the first field determines which submenu the entry will
- ; call. You need no third field in this case (and should not
- ; enter one). If you enter FLYMENU, the third field defines
- ; a function which generates a menu on the fly and tries to
- ; attach it to the entry node. Writing FUNCTION to this field
- ; causes the entry to call the function linked to the name
- ; in the third field (the linkage takes place in a list in the
- ; list in the menuFns.c file).
- ;
- ; A simple example follows.
-
- MENU (Main Menu, None,
- Video Options, SUBMENU,
- Sound Options, SUBMENU,
- Music Options, SUBMENU,
- Read README.TXT, FUNCTION, readReadMe,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Video Options, Main Menu,
- Resolution, SUBMENU,
- Head Mounted Display, SUBMENU,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Resolution, Video Options,
- 320x200, FUNCTION, setRes,
- 640x480, FUNCTION, setRes,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Head Mounted Display, Video Options,
- Choose Type, SUBMENU,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Choose Type, Head Mounted Display,
- No HMD, FUNCTION, setHMD,
- Virtual I/O i*glasses, FUNCTION, setHMD,
- Forte VXF1, FUNCTION, setHMD,
- VictorMaxx CyberMaxx, FUNCTION, setHMD,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Sound Options, Main Menu,
- Sound Card, SUBMENU,
- Set IRQ, FLYMENU, buildIRQmenu,
- Set DMA, FLYMENU, buildDMAmenu,
- Set Port, FLYMENU, buildDIGIportMenu,
- Detect Hardware, FUNCTION, autodetectSound,
- Detect Settings, FUNCTION, autodetectSettings,
- Test Sound, FUNCTION, testSound,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
- MENU (Music Options, Main Menu,
- MIDI Device, FLYMENU, chooseMidiDevice,
- Set MIDI Port, FLYMENU, setMidiPort,
- Previous Menu, FUNCTION, backUp,
- Play Locus, FUNCTION, playLocus,
- Quit, FUNCTION, quit,
- MENU_END)
-
-
-
- ENDSCRIPT
-
-
-